package com.atguigu.webflux.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.time.Instant;


@Table("t_ticket")
public class TicketDO extends BaseModel {
    private String outboundFlight;
    private String seatPref;
    private String seatType;
    private int advanceDiscount;
    private int numPassengers;
    private Long userId;

    public TicketDO() {
        super();
    }

    public TicketDO(String outboundFlight, String seatPref, String seatType, int advanceDiscount, int numPassengers, Long userId) {
        this.outboundFlight = outboundFlight;
        this.seatPref = seatPref;
        this.seatType = seatType;
        this.advanceDiscount = advanceDiscount;
        this.numPassengers = numPassengers;
        this.userId = userId;
    }

    public TicketDO(Long id, Instant createdAt, Instant updatedAt, String outboundFlight, String seatPref, String seatType, int advanceDiscount, int numPassengers, Long userId) {
        super(id, createdAt, updatedAt);
        this.outboundFlight = outboundFlight;
        this.seatPref = seatPref;
        this.seatType = seatType;
        this.advanceDiscount = advanceDiscount;
        this.numPassengers = numPassengers;
        this.userId = userId;
    }

    public String getOutboundFlight() {
        return outboundFlight;
    }

    public void setOutboundFlight(String outboundFlight) {
        this.outboundFlight = outboundFlight;
    }

    public String getSeatPref() {
        return seatPref;
    }

    public void setSeatPref(String seatPref) {
        this.seatPref = seatPref;
    }

    public String getSeatType() {
        return seatType;
    }

    public void setSeatType(String seatType) {
        this.seatType = seatType;
    }

    public int getAdvanceDiscount() {
        return advanceDiscount;
    }

    public void setAdvanceDiscount(int advanceDiscount) {
        this.advanceDiscount = advanceDiscount;
    }

    public int getNumPassengers() {
        return numPassengers;
    }

    public void setNumPassengers(int numPassengers) {
        this.numPassengers = numPassengers;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}
